package com.github.cakin.shiro.chapter10.web.listener;

import org.apache.shiro.session.Session;
import org.apache.shiro.session.SessionListenerAdapter;

/**
 * @className: MySessionListener2
 * @description: 仅创建单个session的监听器
 * @date: 2020/5/22
 * @author: cakin
 */
public class MySessionListener2 extends SessionListenerAdapter {
    @Override
    public void onStart(Session session) {
        System.out.println("会话创建：" + session.getId());
    }
}
